package com.su.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.su.entity.Study;
import com.su.mapper.StudyMapper;
import com.su.service.ClientService;
import com.su.service.StudyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;

@Service
public class StudyServiceImpl extends ServiceImpl<StudyMapper, Study> implements StudyService {

    @Autowired
    private ClientService clientService;

    @Override
    public String sendinstruction(Study study) throws IOException {
        String sendinstruction = clientService.sendinstruction(study);

        return sendinstruction;
    }

    @Override
    public String setstatus(Study study) throws IOException, InterruptedException {

        String sendinstruction = clientService.sendinstruction(study);

        return sendinstruction;

    }

}
